#pragma once

#include "MFCWPFComboBox.h"
#include "MFCWPFTextBox.h"

class CMFCWPFEleCtrl
{
public:
	CMFCWPFEleCtrl(void);
	~CMFCWPFEleCtrl(void);

	bool MouseLeftButtonUp(CMFCWPFElement * pMFCWPFElement, CWnd * pWnd);
	void ResetCtrlRect();

	float m_fXRatio;
	float m_fYRatio;

protected:
	CMFCWPFComboBox * m_pMFCWPFComboBox;
	CMFCWPFTextBox * m_pMFCWPFTextBox;
	CComboBox * m_pComboBox;
	CEdit * m_pEdit;
	CFileDialog * m_pFileDialog;

	bool GetContentDestroyCtrl();
	void CreateInitializeCtrl(CMFCWPFElement * pMFCWPFElement, CWnd * pWnd);
	void ClearElement();
	void CreateComboBox(CMFCWPFElement * pMFCWPFElement, CWnd * pWnd);
	void CreateTextEdit(CMFCWPFElement * pMFCWPFElement, CWnd * pWnd);
};
